package com.chiyi.bean;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * @date 2021/5/13 17:11
 */
@EqualsAndHashCode(callSuper = true)
@Data
@TableName(value = "t_order")
public class TOrder extends Model<TOrder> implements Serializable {

    private static final long serialVersionUID = -7599432804123973236L;

    @TableId(value = "id")
    private Integer id;

    private Integer uid;

    private Integer pid;

    private String pname;

    private Integer number;

    @Override
    protected Serializable pkVal() {
        return this.getId();
    }
}
